with open('Windows_log/windows.txt', 'r',encoding='utf-8') as file:
    Windows_data = file.readlines()

time = []
black_list = "C:\Windows\System32\OpenSSH\sshd.exe"
ssh = []
for data in Windows_data:
    if black_list in data:
        ssh.append(data)
        if len(ssh) > 10:
            print("检测到SSH攻击")
            ssh = []
